<?php

//登录
namespace Home\Controller;
use Think\Controller;
class IndexController extends Controller {
    public function login(){
        if( !IS_POST ){
            $this->display('login');
        }else{
            $model = D('User');
            if( $model->create() ){
                $name = $_POST['name'];
                $password = $_POST['password'];


            }
        }

    }
}